package com.bonuo.saas.service.impl;

import com.bonuo.saas.domain.ProblemSummary;
import com.bonuo.saas.mapper.ProblemSummaryMapper;
import com.bonuo.saas.service.ProblemSummaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProblemSummaryServiceImpl implements ProblemSummaryService {

    @Autowired
    private ProblemSummaryMapper problemSummaryMapper;

    @Override
    public List<ProblemSummary> selectProblemSummaryList(ProblemSummary problemSummary) {
        return problemSummaryMapper.selectProblemSummaryList(problemSummary);
    }

    @Override
    public Integer insertProblemSummary(ProblemSummary problemSummary) {
        return problemSummaryMapper.insertProblemSummary(problemSummary);
    }

    @Override
    public Integer updateProblemSummary(ProblemSummary problemSummary) {
        return problemSummaryMapper.updateProblemSummary(problemSummary);
    }

    @Override
    public Integer deleteProblemSummaryById(Integer id) {
        return problemSummaryMapper.deleteProblemSummaryById(id);
    }
}
